'use strict';

/**
 * @ngdoc overview
 * @name clientApp
 * @description
 * # clientApp
 *
 * Main module of the application.
 */
angular
  .module('clientApp', [
    'ngAnimate',
    'ngCookies',
    'ngResource',
    'ngRoute',
    'ngSanitize',
    'ngTouch',
    'ngToast',
    'ui.bootstrap',
    'angular-loading-bar'
  ])
  .config(function ($routeProvider, ngToastProvider) {	  
    $routeProvider
	    .when('/about', {
	        templateUrl: 'views/about.html',
	        controller: 'AboutCtrl'
	    })
	    .when('/', {
	        templateUrl: 'views/main.html',
	        controller: 'MainCtrl'
	    })
	    .when('/connection', {
	        templateUrl: 'views/connection.html',
	        controller: 'ConnectionCtrl'
	    })
	     .when('/vols', {
	        templateUrl: 'views/vols.html',
	        controller: 'GestionVols'
	    })
	    .when('/hotels', {
	        templateUrl: 'views/hotels.html',
	        controller: 'GestionHotels'
	    })
	    .when('/panneaux', {
	        templateUrl: 'views/panneaux.html',
	        controller: 'GestionPanneaux'
	    })
		.otherwise({
			redirectTo: '#/'
		});
    
    ngToastProvider.configure({
		animation: 'slide',
		horizontalPosition: 'right',
		verticalPosition: 'top',
		maxNumber: 0
    });
  });

